Optimal. Leaf size=231 \[ -\frac {\sqrt {a+b x+c x^2} \left (-36 a A c-40 a b B+35 A b^2\right )}{96 a^3 x^2}+\frac {(7 A b-8 a B) \sqrt {a+b x+c x^2}}{24 a^2 x^3}+\frac {\left (8 a b B \left (5 b^2-12 a c\right )-A \left (48 a^2 c^2-120 a b^2 c+35 b^4\right )\right ) \tanh ^{-1}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+b x+c x^2}}\right )}{128 a^{9/2}}+\frac {\sqrt {a+b x+c x^2} \left (128 a^2 B c-220 a A b c-120 a b^2 B+105 A b^3\right )}{192 a^4 x}-\frac {A \sqrt {a+b x+c x^2}}{4 a x^4} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.28, antiderivative size = 231, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {834, 806, 724, 206} \[ \frac {\left (8 a b B \left (5 b^2-12 a c\right )-A \left (48 a^2 c^2-120 a b^2 c+35 b^4\right )\right ) \tanh ^{-1}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+b x+c x^2}}\right )}{128 a^{9/2}}+\frac {\sqrt {a+b x+c x^2} \left (128 a^2 B c-220 a A b c-120 a b^2 B+105 A b^3\right )}{192 a^4 x}-\frac {\sqrt {a+b x+c x^2} \left (-36 a A c-40 a b B+35 A b^2\right )}{96 a^3 x^2}+\frac {(7 A b-8 a B) \sqrt {a+b x+c x^2}}{24 a^2 x^3}-\frac {A \sqrt {a+b x+c x^2}}{4 a x^4} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 724
Rule 806
Rule 834
Rubi steps
\begin {align*} \int \frac {A+B x}{x^5 \sqrt {a+b x+c x^2}} \, dx &=-\frac {A \sqrt {a+b x+c x^2}}{4 a x^4}-\frac {\int \frac {\frac {1}{2} (7 A b-8 a B)+3 A c x}{x^4 \sqrt {a+b x+c x^2}} \, dx}{4 a}\\ &=-\frac {A \sqrt {a+b x+c x^2}}{4 a x^4}+\frac {(7 A b-8 a B) \sqrt {a+b x+c x^2}}{24 a^2 x^3}+\frac {\int \frac {\frac {1}{4} \left (35 A b^2-40 a b B-36 a A c\right )+(7 A b-8 a B) c x}{x^3 \sqrt {a+b x+c x^2}} \, dx}{12 a^2}\\ &=-\frac {A \sqrt {a+b x+c x^2}}{4 a x^4}+\frac {(7 A b-8 a B) \sqrt {a+b x+c x^2}}{24 a^2 x^3}-\frac {\left (35 A b^2-40 a b B-36 a A c\right ) \sqrt {a+b x+c x^2}}{96 a^3 x^2}-\frac {\int \frac {\frac {1}{8} \left (-8 a B \left (15 b^2-16 a c\right )+5 A \left (21 b^3-44 a b c\right )\right )+\frac {1}{4} c \left (35 A b^2-40 a b B-36 a A c\right ) x}{x^2 \sqrt {a+b x+c x^2}} \, dx}{24 a^3}\\ &=-\frac {A \sqrt {a+b x+c x^2}}{4 a x^4}+\frac {(7 A b-8 a B) \sqrt {a+b x+c x^2}}{24 a^2 x^3}-\frac {\left (35 A b^2-40 a b B-36 a A c\right ) \sqrt {a+b x+c x^2}}{96 a^3 x^2}+\frac {\left (105 A b^3-120 a b^2 B-220 a A b c+128 a^2 B c\right ) \sqrt {a+b x+c x^2}}{192 a^4 x}-\frac {\left (8 a b B \left (5 b^2-12 a c\right )-A \left (35 b^4-120 a b^2 c+48 a^2 c^2\right )\right ) \int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx}{128 a^4}\\ &=-\frac {A \sqrt {a+b x+c x^2}}{4 a x^4}+\frac {(7 A b-8 a B) \sqrt {a+b x+c x^2}}{24 a^2 x^3}-\frac {\left (35 A b^2-40 a b B-36 a A c\right ) \sqrt {a+b x+c x^2}}{96 a^3 x^2}+\frac {\left (105 A b^3-120 a b^2 B-220 a A b c+128 a^2 B c\right ) \sqrt {a+b x+c x^2}}{192 a^4 x}+\frac {\left (8 a b B \left (5 b^2-12 a c\right )-A \left (35 b^4-120 a b^2 c+48 a^2 c^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+b x}{\sqrt {a+b x+c x^2}}\right )}{64 a^4}\\ &=-\frac {A \sqrt {a+b x+c x^2}}{4 a x^4}+\frac {(7 A b-8 a B) \sqrt {a+b x+c x^2}}{24 a^2 x^3}-\frac {\left (35 A b^2-40 a b B-36 a A c\right ) \sqrt {a+b x+c x^2}}{96 a^3 x^2}+\frac {\left (105 A b^3-120 a b^2 B-220 a A b c+128 a^2 B c\right ) \sqrt {a+b x+c x^2}}{192 a^4 x}+\frac {\left (8 a b B \left (5 b^2-12 a c\right )-A \left (35 b^4-120 a b^2 c+48 a^2 c^2\right )\right ) \tanh ^{-1}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+b x+c x^2}}\right )}{128 a^{9/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.23, size = 176, normalized size = 0.76 \[ \frac {\sqrt {a+x (b+c x)} \left (-16 a^3 (3 A+4 B x)+8 a^2 x (A (7 b+9 c x)+2 B x (5 b+8 c x))-10 a b x^2 (7 A b+22 A c x+12 b B x)+105 A b^3 x^3\right )}{192 a^4 x^4}-\frac {\left (A \left (48 a^2 c^2-120 a b^2 c+35 b^4\right )+8 a b B \left (12 a c-5 b^2\right )\right ) \tanh ^{-1}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+x (b+c x)}}\right )}{128 a^{9/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 2.52, size = 425, normalized size = 1.84 \[ \left [-\frac {3 \, {\left (40 \, B a b^{3} - 35 \, A b^{4} - 48 \, A a^{2} c^{2} - 24 \, {\left (4 \, B a^{2} b - 5 \, A a b^{2}\right )} c\right )} \sqrt {a} x^{4} \log \left (-\frac {8 \, a b x + {\left (b^{2} + 4 \, a c\right )} x^{2} - 4 \, \sqrt {c x^{2} + b x + a} {\left (b x + 2 \, a\right )} \sqrt {a} + 8 \, a^{2}}{x^{2}}\right ) + 4 \, {\left (48 \, A a^{4} + {\left (120 \, B a^{2} b^{2} - 105 \, A a b^{3} - 4 \, {\left (32 \, B a^{3} - 55 \, A a^{2} b\right )} c\right )} x^{3} - 2 \, {\left (40 \, B a^{3} b - 35 \, A a^{2} b^{2} + 36 \, A a^{3} c\right )} x^{2} + 8 \, {\left (8 \, B a^{4} - 7 \, A a^{3} b\right )} x\right )} \sqrt {c x^{2} + b x + a}}{768 \, a^{5} x^{4}}, -\frac {3 \, {\left (40 \, B a b^{3} - 35 \, A b^{4} - 48 \, A a^{2} c^{2} - 24 \, {\left (4 \, B a^{2} b - 5 \, A a b^{2}\right )} c\right )} \sqrt {-a} x^{4} \arctan \left (\frac {\sqrt {c x^{2} + b x + a} {\left (b x + 2 \, a\right )} \sqrt {-a}}{2 \, {\left (a c x^{2} + a b x + a^{2}\right )}}\right ) + 2 \, {\left (48 \, A a^{4} + {\left (120 \, B a^{2} b^{2} - 105 \, A a b^{3} - 4 \, {\left (32 \, B a^{3} - 55 \, A a^{2} b\right )} c\right )} x^{3} - 2 \, {\left (40 \, B a^{3} b - 35 \, A a^{2} b^{2} + 36 \, A a^{3} c\right )} x^{2} + 8 \, {\left (8 \, B a^{4} - 7 \, A a^{3} b\right )} x\right )} \sqrt {c x^{2} + b x + a}}{384 \, a^{5} x^{4}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.30, size = 884, normalized size = 3.83 \[ -\frac {{\left (40 \, B a b^{3} - 35 \, A b^{4} - 96 \, B a^{2} b c + 120 \, A a b^{2} c - 48 \, A a^{2} c^{2}\right )} \arctan \left (-\frac {\sqrt {c} x - \sqrt {c x^{2} + b x + a}}{\sqrt {-a}}\right )}{64 \, \sqrt {-a} a^{4}} + \frac {120 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{7} B a b^{3} - 105 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{7} A b^{4} - 288 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{7} B a^{2} b c + 360 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{7} A a b^{2} c - 144 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{7} A a^{2} c^{2} - 440 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{5} B a^{2} b^{3} + 385 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{5} A a b^{4} + 1056 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{5} B a^{3} b c - 1320 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{5} A a^{2} b^{2} c + 528 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{5} A a^{3} c^{2} + 768 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{4} B a^{4} c^{\frac {3}{2}} + 584 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{3} B a^{3} b^{3} - 511 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{3} A a^{2} b^{4} - 480 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{3} B a^{4} b c + 1752 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{3} A a^{3} b^{2} c + 528 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{3} A a^{4} c^{2} + 384 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{2} B a^{4} b^{2} \sqrt {c} - 1024 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{2} B a^{5} c^{\frac {3}{2}} + 2048 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{2} A a^{4} b c^{\frac {3}{2}} - 264 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )} B a^{4} b^{3} + 279 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )} A a^{3} b^{4} - 288 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )} B a^{5} b c + 360 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )} A a^{4} b^{2} c - 144 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )} A a^{5} c^{2} - 384 \, B a^{5} b^{2} \sqrt {c} + 384 \, A a^{4} b^{3} \sqrt {c} + 256 \, B a^{6} c^{\frac {3}{2}} - 512 \, A a^{5} b c^{\frac {3}{2}}}{192 \, {\left ({\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{2} - a\right )}^{4} a^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.06, size = 417, normalized size = 1.81 \[ -\frac {3 A \,c^{2} \ln \left (\frac {b x +2 a +2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {a}}{x}\right )}{8 a^{\frac {5}{2}}}+\frac {15 A \,b^{2} c \ln \left (\frac {b x +2 a +2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {a}}{x}\right )}{16 a^{\frac {7}{2}}}-\frac {35 A \,b^{4} \ln \left (\frac {b x +2 a +2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {a}}{x}\right )}{128 a^{\frac {9}{2}}}-\frac {3 B b c \ln \left (\frac {b x +2 a +2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {a}}{x}\right )}{4 a^{\frac {5}{2}}}+\frac {5 B \,b^{3} \ln \left (\frac {b x +2 a +2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {a}}{x}\right )}{16 a^{\frac {7}{2}}}-\frac {55 \sqrt {c \,x^{2}+b x +a}\, A b c}{48 a^{3} x}+\frac {35 \sqrt {c \,x^{2}+b x +a}\, A \,b^{3}}{64 a^{4} x}+\frac {2 \sqrt {c \,x^{2}+b x +a}\, B c}{3 a^{2} x}-\frac {5 \sqrt {c \,x^{2}+b x +a}\, B \,b^{2}}{8 a^{3} x}+\frac {3 \sqrt {c \,x^{2}+b x +a}\, A c}{8 a^{2} x^{2}}-\frac {35 \sqrt {c \,x^{2}+b x +a}\, A \,b^{2}}{96 a^{3} x^{2}}+\frac {5 \sqrt {c \,x^{2}+b x +a}\, B b}{12 a^{2} x^{2}}+\frac {7 \sqrt {c \,x^{2}+b x +a}\, A b}{24 a^{2} x^{3}}-\frac {\sqrt {c \,x^{2}+b x +a}\, B}{3 a \,x^{3}}-\frac {\sqrt {c \,x^{2}+b x +a}\, A}{4 a \,x^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+B\,x}{x^5\,\sqrt {c\,x^2+b\,x+a}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {A + B x}{x^{5} \sqrt {a + b x + c x^{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________